package com.example.printscreen.printscreen.bean;


import com.example.printscreen.printscreen.utils.StringUtil;

/**
 * 消息
 *
 * author: xiaoluo
 * date: 2017/5/25 10:46
 */
public class TupaiMsg {
    public static final int PostCommentedMessage = 1;    // 帖子被评论
    public static final int CommentCommentedMessage = 2; // 评论被评论
    public static final int PostLikedMessage = 3;        // 帖子被点赞
    public static final int PostRepliedMessage = 4;      // 帖子有作品发表
    public static final int FollowedMessage = 5;         // 被关注

    private int id;
    private int uid;
    private TupaiUser target_user;
    private FeedItem target_post;
    private FeedItem parent_post;
    private Comment target_comment;
    private String content;
    private int status;
    private int type;
    private String tpTime;
    private String created_at;
    private String updated_at;

    public String getCreated_at() {
        return created_at;
    }

    public void setCreated_at(String created_at) {
        this.created_at = created_at;
    }

    public String getUpdated_at() {
        return updated_at;
    }

    public void setUpdated_at(String updated_at) {
        this.updated_at = updated_at;
    }

    public String getTpTime() {
        return StringUtil.transStempTime(created_at);
    }


    public void setTpTime(String tpTime) {
        this.tpTime = tpTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public TupaiUser getTarget_user() {
        return target_user;
    }

    public void setTarget_user(TupaiUser target_user) {
        this.target_user = target_user;
    }

    public FeedItem getTarget_post() {
        return target_post;
    }

    public void setTarget_post(FeedItem target_post) {
        this.target_post = target_post;
    }

    public FeedItem getParent_post() {
        return parent_post;
    }

    public void setParent_post(FeedItem parent_post) {
        this.parent_post = parent_post;
    }

    public Comment getTarget_comment() {
        return target_comment;
    }

    public void setTarget_comment(Comment target_comment) {
        this.target_comment = target_comment;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
